import {createContainer} from "unstated-next";
import useInfoStore from "./useInfoStore";
import usePermissionStore from "./usePermissionStore";

function useStore(): any {
  const user = useInfoStore();
  const permissonStore = usePermissionStore();
  return {
    user,
    permissonStore,
  };
}

export default createContainer(useStore);
